package com.cbg.es.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;

/**
 * 表详情DTO
 *
 * @author wangjuzheng
 * @date 2019-10-17
 **/
@Data
public class EsTableListDTO implements Serializable {

    /**
     * id
     */
    @ApiModelProperty(value = "id")
    private Object id;

    /**
     * 表ID
     */
    @ApiModelProperty(value = "表ID")
    private Long tableId;

    /**
     * 表名
     */
    @ApiModelProperty(value = "表名")
    private String tableName;

    /**
     * 表注释
     */
    @ApiModelProperty(value = "表注释")
    private String tableNameCn;

    /**
     * 表显示名
     */
    @ApiModelProperty(value = "表显示名")
    private String tableNameAlias;

    /**
     * 状态
     */
    @ApiModelProperty(value = "状态")
    private Byte status;

    public EsTableListDTO() {
    }

    public EsTableListDTO(Object id, Long tableId, String tableName, String tableNameCn, String tableNameAlias, Byte status) {
        this.id = id;
        this.tableId = tableId;
        this.tableName = tableName;
        this.tableNameCn = tableNameCn;
        this.tableNameAlias = tableNameAlias;
        this.status = status;
    }
}
